/***************************************************************
 * Name:      QtHelper
 * Purpose:   Code::Blocks plugin
 * Author:    Sviridov Michael Alexandrovich (2mihail@mail.ru)
 * Created:   2008-09-20
 * Copyright: Sviridov Michael Alexandrovich
 * License:   GPL
 **************************************************************/

#ifndef QTWCONFIGURATION_H
#define QTWCONFIGURATION_H
//-------------------------------------------------
#include "configurationpanel.h"
//-------------------------------------------------
class QtCfgDlg : public cbConfigurationPanel
{
public:
    QtCfgDlg(wxWindow* parent);
    virtual ~QtCfgDlg();

protected:
    virtual wxString GetTitle() const {return _("Qt Helper");}
    virtual wxString GetBitmapBaseName() const {return _T("generic-plugin");}
    virtual void OnApply() {save();}
    virtual void OnCancel() {}

    void on_browse_qt_dir(wxCommandEvent& event);
    void on_browse_mkspec(wxCommandEvent& event);
    void on_read_mkspecs(wxCommandEvent& event);

    void load();
    void save();

    wxTextCtrl* qt_dir_edit();
    wxTextCtrl* mkspec_dir_edit();
    wxChoice* mkspec_combo();

    void init_mkspecs(const wxString &mkspec_dir);
private:
    DECLARE_EVENT_TABLE()
};
//-------------------------------------------------
#endif
